<template>
<div class="phoneModel" v-if="showPhone">
<div id="phonemodeY" >
      <i class="iconfont closeicon" @click='closephone'>&#xe6ce;</i>
    <div class="inner-mode">
      <div class="content-text">
        <p v-for="(item,index) in datadetail" :class="item.isTitle==1?'isTitle':''" :style="{fontWeight:item.fontWeight,color:item.color}" :key='index'><span>{{item.content}}</span></p>
      </div>
    </div>
  </div>
</div>
  
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    props: {
      showPhone:{
        type:Boolean,
        default:false
      },
      //内容详情区域
      datadetail: {
        type: Array,
        default: () => {
          return []
        }
      }
    },
    methods:{
      closephone(){
        this.$emit('closePhone')
      }
    },
    mounted() {
    },
  }
</script>
<!-- https://oss.juchehulian.com/admin_driving/20210127/BVNxwy1611729928.png -->
<style lang='scss' scoped>
.phoneModel{
  width: 100vw;
  height: 100vh;
  z-index: 2013;
  position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.4);
}
  #phonemodeY {
    width: 340px;
    height: 700px;
    background: url('https://oss.juchehulian.com/admin_driving/20210127/Neoz9D1611713823.png') no-repeat;
    background-size: 100%;
    border-radius: 30px;

    position: absolute;
    left: 50%;
    top:50%;
    margin-left: -170px;
    margin-top: -350px;
    .closeicon{
      position: absolute;
      right: -40px;
      top: 0 ;
       cursor: pointer;
    font-size: 24px;
    color: white;
      z-index: 2015;

    }
    .inner-mode {
      width: 308px;
      height: 544px;
      overflow-x: hidden;
      overflow-y: scroll;
      margin: 0 auto;
      margin-top: 75px;
      padding-bottom: 1px;
      background-color: #fff;

      &::-webkit-scrollbar {
        width: 0 !important;
      }

      .topimg {
        transition: all .3s;
        width: 100%;
        height: 300px;
        margin: 0 auto;
        position: relative;
        background: url('https://oss.juchehulian.com/admin_driving/20210127/RgRYoG1611719035.png') no-repeat;
        background-size: 100%;
      }

      .sharebtn {
        cursor: pointer;
        width: 150px;
        height: 38px;
        text-align: center;
        line-height: 38px;
        color: #fff;
        font-size: 15px;
        border-radius: 5px;
        background-color: #ff7c24;
        margin: 0 auto;
        margin-top: 30px;
        border: 1px solid #ff8d3c;
      }

      .content-text {
        margin: 40px auto 0;

        p {
          font-size: 14px;
          color: #444444;
          text-align: justify;
          line-height: 23px;
        }

        .isTitle {
          font-weight: bold;
          color: #06A2C3;
          font-size: 16px;
          position: relative;
          padding-left: 16px;
          border-left: 4px solid;
        }

        ul {
          li {
            text-align: justify;
            font-size: 13px;
            color: #666;
            line-height: 20px;
          }
        }
      }
    }

  }
</style>
